package com.uni.crawl.model.entity.crawl;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uni.crawl.common.base.UserBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author JervisPG
 * @since 2023-12-27
 */
@Getter
@Setter
@TableName("crawl_queue")
@ApiModel(value = "CrawlQueue对象", description = "爬虫队列")
public class CrawlQueue extends UserBaseEntity {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("空间编码")
    private String nsCode;

    @ApiModelProperty("模板编码")
    private String tmplCode;

    @ApiModelProperty("实例ID")
    private Long instanceId;

    @ApiModelProperty("URL MD5")
    private String urlMd5;

    @ApiModelProperty("URL")
    private String url;

    @ApiModelProperty(value = "标题", notes = "如：数据列表项名称")
    private String title;

    @ApiModelProperty("URL类型。1-列表类型；2-详情页类型")
    private Integer urlType;

    @ApiModelProperty("抓取状态。-2-解析失败；-1-抓取失败；0-未抓取；1-抓取中；2-已抓取；3-已解析")
    private Integer crawlStatus;

    @ApiModelProperty("http status")
    private Integer httpStatus;

    @ApiModelProperty("http响应体")
    private String httpResponse;
}
